#ifndef _OBJECT_LIST_H

#define _OBJECT_LIST_H

#include "class.h"
#include "vm.h"
#include "header_obj.h"

typedef struct 
{
    ObjHeader obj_header;
    ValueBuffer elements; 
} ObjList;

ObjList* new_ObjList(VM *vm, uint32_t element_num);
Value remove_element(VM *vm, ObjList *obj_list, uint32_t index);
void insert_element(VM *vm, ObjList *obj_list, uint32_t index, Value value);


#endif